<?php

namespace models\Exception\Business;

use Exception;


class MemberException extends Exception {
    const MEMBER_IS_NOT_EXISTS = '用户不存在';
    const MEMBER_IS_NOT_EXISTS_NO = '404';

    const MEMBER_CREATE_FAILURE = '用户创建失败';
    const MEMBER_CREATE_FAILURE_NO = '422';

    const MEMBER_EDIT_FAILURE = '用户编辑失败';
    const MEMBER_EDIT_FAILURE_NO = '422';

    const MEMBER_ID_IS_EMPTY = '用户编号不能为空';
    const MEMBER_ID_IS_EMPTY_NO = '400';

    const MEMBER_MOBILE_EMPTY = "手机号码不能为空";
    const MEMBER_MOBILE_EMPTY_NO = "400";

    const MEMBER_MOBILE_EXISTS = "该手机号码已是一个有效注册用户,请更换手机号码";
    const MEMBER_MOBILE_EXISTS_NO = "400";

    const GENERATE_SMS_CODE_EMPTY = "短信验证码不能为空";
    const GENERATE_SMS_CODE_EMPTY_NO = "400";

    const GENERATE_SMS_CODE_FAILURE = "短信验证码生成失败";
    const GENERATE_SMS_CODE_FAILURE_NO = "400";

    const THERE_IS_NO_SMS_CODE = "短信验证码验证失败";
    const THERE_IS_NO_SMS_CODE_NO = "400";

    const MEMBER_SMS_CODE_EXPIRE = "短信验证码已过期";
    const MEMBER_SMS_CODE_EXPIRE_NO = "400";

    const INVALID_SMS_CODE = "短信验证码无效";
    const INVALID_SMS_CODE_NO = "400";

    const MEMBER_PASSWORD_EMPTY = "密码不能为空";
    const MEMBER_PASSWORD_EMPTY_NO = "400";

    const INVALID_STATS = "该账号禁止登陆";
    const INVALID_STATS_NO = "403";

    const WRONG_PASSWORD = "密码错误";
    const WRONG_PASSWORD_NO = "400";

    const EDIT_DENIED = "无权修改他人的个人资料";
    const EDIT_DENIED_NO = "403";

    const INVALID_MOBILE_EMPTY = "请输入一个有效的手机号码";
    const INVALID_MOBILE_EMPTY_NO = "400";

    const LOGIN_FIRST = "请先登陆";
    const LOGIN_FIRST_NO = "401";

    const INVALID_FAVOUR_ACTION = "无效操作";
    const INVALID_FAVOUR_ACTION_NO = "400";

    const REPEAT_FAVOUR = "请勿重复收藏";
    const REPEAT_FAVOUR_NO = "400";

    const NOT_YET_FAVOUR = "无法取消尚未收藏的商品";
    const NOT_YET_FAVOUR_NO = "400";

    const CANCEL_FAVOUR_FAILURE = "取消收藏失败";
    const CANCEL_FAVOUR_FAILURE_NO = "422";

    const INTEGRSL_FAILURE = "金豆不足";
    const INTEGRSL_FAILURE_NO = "400";

    const MEMBER_PAY_PASSWORD_EMPTY = "请先设置支付密码";
    const MEMBER_PAY_PASSWORD_EMPTY_NO = "400";

    const MACHINE_NOT_EXISTS = '机器人不存在';

}
